import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/job/list',
    method: 'get',
    params
  })
}

export function treeList(params) {
  return request({
    url: '/job/treeList',
    method: 'get',
    params
  })
}

export function add(data) {
  return request({
    url: '/job/add',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: '/job/edit',
    method: 'put',
    data
  })
}

export function del(data) {
  return request({
    url: '/job/remove/'+data,
    method: 'delete',
    data
  })
}